package com.jsh.erp.datasource.entities;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;


/**
 * @author yy
 * @create 2025-08-01 09:42:48
 * @description
 */

@Data
@TableName(value ="jsh_production_order")
public class ProductionOrder {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value="order_number")
    private String orderNumber;

    @TableField(value="product_barcode")
    private String productBarcode;

    @TableField(value="ordered_quantity")
    private Integer orderedQuantity;

    @TableField(value="produced_quantity")
    private Integer producedQuantity;

    @TableField(value="sales_order_number")
    private String salesOrderNumber;

    @TableField(value="customer_original_number")
    private String customerOriginalNumber;

    @TableField(value="planned_completion_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date plannedCompletionDate;

    @TableField(value="remarks")
    private String remarks;

    @TableField(value="document_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date documentDate;

    @TableField(value="operator_id")
    private Long operatorId;

    @TableField(value="status")
    private Integer status;

    @TableField(value="accepted_quantity")
    private Integer acceptedQuantity;

    @TableField(value="stored_quantity")
    private Integer storedQuantity;

    @TableField(value="actual_completion_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date actualCompletionDate;

    @TableField(value="tenant_id")
    private Integer tenantId;

    @TableField(value="delete_flag")
    private String deleteFlag;

}
